package com.ssm.jvm.memmodel;

import java.util.ArrayList;
import java.util.List;

public class HeapOverFlowTest {

    byte[] a = new byte[1024 * 1024 * 2]; // 2mb

    public static void main(String[] args) {
        List<HeapOverFlowTest> list = new ArrayList<>();
        while(true) {
            list.add(new HeapOverFlowTest());
        }
    }
}
